extends "../cTDZ/cTDZ.gd"
func _info():
	pass

func _connect():
	._connect()
	
func _extInit():
	._extInit()
	chaName = "绿晶蟹"
	camp = "蟹族"
	lv = 1
	attCoe.atkRan = 1
	attCoe.atk = 13 / 8.5
	attCoe.maxHp = 500 / 112.5
	attCoe.def = 5 / 15.0
	attCoe.mgiDef = 5 / 16.6
	attAdd.spd += 1.0
	atkEff = "atk_dao"
	skillStrs = []
	aiOn = true
	addSkillTxt("晶体化：受到的物理和魔法伤害减少20%，真伤增加30%；开局为所有队友(除自己)附加1层<免伤提升>")

func _onBattleStart():
	._onBattleStart()
	var chas = getAllChas(2)
	for i in chas:
		if i == self:continue
		i.addBuff(ctrl.b_sssh.new(1))

func _onHurt(atkinfo):
	if atkinfo.isMiss || atkinfo.hitCha != self:return
	if atkinfo.hurtType == Chara.HurtType.REAL:
		atkinfo.hurtVal *= 1.3
	else:
		atkinfo.hurtVal *= 0.8
	._onHurt(atkinfo)